let app = getApp()
Component({
    properties: {
 
      },
      data:{
      
      },
    lifetimes: {
        attached: function () {
          var that=this
          wx.request({
            url: app.globalData.siteroot,
            data: {
              do:'LivePlayer_getLivePlayerSetting',
              user_id:wx.getStorageSync('user_id'),
            },
            success: function(res) {
              if(res.data.code==400){
                wx.showToast({
                  title:res.data.msg,
                  icon: "none"
                });
              }else{
                that.setData({
                  agreement:res.data.data.live_player_setting.agreement
                })
              }
            }
          })
          wx.request({
            url: app.globalData.siteroot,
            data: {
              do:'Site_getSiteAbout',
              user_id:wx.getStorageSync('user_id'),
            },
            success: function(res) {
               console.log(res.data)
            }
          })
       }
      },
    methods: {
    }
});
